<template>
  <div class="content-detail">
    <div class="delete-row"></div>
    <div class="warp-details">
      <div class="row-text" v-for="(item, index) in list" :key="index">
        <a :href="item.src" target="_blank" :title="item.title">{{
          item.title
        }}</a>
      </div>
    </div>
  </div>
</template>

<style lang="less" scoped>
.content-detail {
  border-bottom: 0.1em solid #1deaff;
  background: url(../../assets/box.png) no-repeat;
  background-size: cover;

  height: 30vh;
  .warp-details {
    // border: red solid 1px;
    overflow: hidden;
    // overflow-y: scroll;
    box-sizing: border-box;
    height: 92%;
    .row-text {
      width: 96%;
      display: grid;
      height: 4.1vh;
      font-size: 1em;
      align-items: flex-end;
      a {
        padding-left: 1vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-decoration: none;
        color: #000000;
      }
      // border: 1px solid red;
      border-bottom: dashed 0.08em #bcbcbc;
    }
  }
  .delete-row {
    padding-top: 2vh;
  }
}
</style>

<script>
export default {
  name: "TableContent",
  props: {
    list: {
      type: Array,
      default: [],
    },
  },
};
</script>
